#ifdef _WIN32
#include <Windows.h>
#undef GetTime

#define MAIN_WIN32(class) \
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPreviousInstance, char* aCommandLine, int iWindowMode)   \
{                                                                                                           \
    UNUSED(hPreviousInstance);                                                                              \
    UNUSED(aCommandLine);                                                                                   \
    UNUSED(iWindowMode);                                                                                    \
    try                                                                                                     \
    {                                                                                                       \
        class().Start(hInstance);                                                                           \
    }                                                                                                       \
    catch (...)                                                                                             \
    {                                                                                                       \
    }                                                                                                       \
    return 0;                                                                                               \
}


#endif